<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>额外销售</title>
<jsp:include page="/common.jsp"></jsp:include>
</head>
<body>
	${title }
	<form id="form" class="form-inline well" action="${ctx }/sales/otherSales?save" method="post">
		<input name="id" type="hidden" value="${t.id }">
		<label class="text">
			名称:
			<input class="input-medium" type="text" name="name" value="${t.name }">
		</label>
		<label class="text">
			销售人员:
			<input class="input-medium" type="text" name="saler" value="${t.saler }">
		</label>
		<label class="text">
			店铺:
			<input class="input-medium" type="text" name="shop" value="${t.shop }">
		</label>
		<label class="text">
			价格:
			<input class="input-medium" type="text" name="price" value="${t.price }">
		</label>
		<label class="text">
			时间:
			<input class="input-medium" type="text" name="date" value='<fmt:formatDate value="${t.date }" pattern="yyyy-MM-dd"/>' class="Wdate" onfocus="WdatePicker()">
		</label>
		<label class="textarea">
			备注:
			<textarea rows="3" cols="10" name="remark">${t.remark }</textarea>
		</label>
		<div class="control-group">
                <div class="controls">
                    <c:if test="${status==view}">
                        <button class="btn btn-primary" type="submit">保存</button>
                    </c:if>
                    <a class="btn btn-primary" onclick="go('sales/otherSales?list')">返回</a>
                </div>
         </div>
	</form>
</body>
</html>